<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="com.opensymphony.xwork2.ActionContext"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  
<body>
	<div id="head">
    	<div id="h-logo">
        	<img src="lucar-image/logo.png" class="hl">
        </div>
        <div id="h-right">
        	<span id="hr-useCar" class="hr-span" onmouseover="headimg(1);" onMouseOut="headimg(2);">
            	<img id="uCOut" src="lucar-image/useCar-Out.png" class="hr-image" style="display:block">
            	<img id="uCOn" src="lucar-image/useCar-On.png" class="hr-image" style="display:none">
            </span>
            <span id="hr-aboutUs" class="hr-span" onmouseover="headimg(3);" onMouseOut="headimg(4);">
            	<img id="aUOut" src="lucar-image/aboutUs-Out.png" class="hr-image" style="display:block">
            	<img id="aUOn" src="lucar-image/aboutUs-On.png" class="hr-image" style="display:none">
            </span>
            <span id="register" class="button" onMouseOver="headbutton(1);" onMouseOut="headbutton(2);"><b class="hr-text">注册</b></span>
            <span id="login" class="button" onMouseOver="headbutton(3);" onMouseOut="headbutton(4);"><b class="hr-text">登录</b></span>
        </div>
    </div>
	<% 
  		SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss"); 
		String num="R"+(String)df.format(System.currentTimeMillis());
		session.setAttribute("Rnum", num);
  		%>
    <div id="carRepair-body">
    	<s:form action="repair" namespace="/">
    		<div id="cR-head">
            	<label id="cR-No">保修订单号：</label><s:textfield id="cRN-input" name="r.rid" value="%{#session.Rnum}" readonly="true"/>
                <label id="cR-time">保修日期：</label><s:textfield id="cRT-input" name="r.repairTime" readonly="true"/>
        	</div>
            <div id="cR-body">
            	<div id="carImg"></div>
                <span id="userId_span">用户id:</span>
				<s:textfield id="userId" name="r.userId" value="1006" readonly="true"/>
                <span id="carId_span">请输入车的Id：</span>
				<s:textfield id="carId" name="r.carId" />
                <span id="repair_span">选择维修类型：</span>
				<s:select id="repairType" name="r.repairType" list="#{1:'断电抛锚',2:'水温过高',3:'车祸事故',4:'引擎着火'}" label="abc" listKey="key" listValue="value" headerKey="0" headerValue="aabb"/>
                <span id="rremarks_span">请描述一下损坏的情况：</span>
				<s:textarea id="rremarks" name="r.rremarks"/>
            </div>
			<s:submit value="上交" id="cR-submit" />
        </s:form>
    </div>
</body>

<script src="lucar-script/head-script.js"></script>
<script type="text/javascript">
window.onload = function(){
	function box(){
		var oBox = document.getElementById("carRepair-body");
		var L1 = oBox.offsetWidth;
		var Left = (document.documentElement.clientWidth-L1)/2;
		oBox.style.left = Left+'px';
	}
	box();
	window.onresize = function(){
        box();
    }
}
</script>

</html>
